public class Main {
    public static void main(String[] args) {
                //TIP Press <shortcut actionId="ShowIntentionActions"/> with your caret at the highlighted text
                // to see how IntelliJ IDEA suggests fixing it.
        System.out.println("Hello and welcome!");

        Component L1= new ComponentComposite("张三","项目经理");
        Component leaf3_1 = new ComponentLeaf("李四","职员1");
        L1.addChild(leaf3_1);
        L1.addChild(new ComponentLeaf("王五","职员2"));
        L1.operation();

    }
}
